home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form ComPal
- BackColor = &H00E0E0E0&
- BorderStyle = 3 'Fixed Double
- Caption = "Common"
- ClientHeight = 3975
- ClientLeft = 3510
- ClientTop = 870
- ClientWidth = 4230
- Height = 4665
- Left = 3450
- LinkTopic = "Form2"
- ScaleHeight = 3975
- ScaleWidth = 4230
- Top = 240
- Width = 4350
- Begin CheckBox ckTop
- Caption = "Top"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Left = 3360
- TabIndex = 0
- Top = 120
- Width = 795
- End
- Begin XPAL Pal
- Height = 3390
- IDP = 18768
- Left = 60
- System = 0 'False
- Top = 540
- Width = 4110
- End
- Begin Menu M_file
- Caption = "File"
- Begin Menu M_read
- Caption = "Read"
- End
- Begin Menu M_write
- Caption = "Write"
- End
- End
- Begin Menu M_image
- Caption = "Image"
- End
- Begin Menu M_shift
- Caption = "Shift"
- End
- Option Explicit
- Sub ckTop_Click ()
- Me.SetFocus
- Call TopMost(Me.hWnd, ckTop)
- End Sub
- Sub M_image_Click ()
- Dim n As Integer
- For n = 0 To 255
- Pal.Cindex = n
- DibPal!Pal.Cindex = n
- Pal.Color = DibPal!Pal.Color
- Next n
- End Sub
- Sub M_read_Click ()
- Dim filename As String
- filename = InputBox$("Enter File Name")
- If filename = "" Then Exit Sub
- Call ReadPalette(Pal, filename)
- End Sub
- Sub M_shift_Click ()
- Dim n As Integer
- Dim Color As Long
- For n = 245 To 0 Step -1
- Pal.Cindex = n
- Color = Pal.Color
- Pal.Cindex = n + 10
- Pal.Color = Color
- Next n
- For n = 0 To 9
- Pal.Cindex = n
- Pal.Color = 0
- Next n
- End Sub
- Sub M_write_Click ()
- Dim filename As String
- filename = InputBox$("Enter File Name")
- If filename = "" Then Exit Sub
- Call WritePalette(Pal, filename)
- End Sub
-